# list
classmates = ['Michael', 'Bob', 'Tracy']
print(classmates)

print(len(classmates))

print(classmates[0])
print(classmates[1])
print(classmates[2])
print(classmates[-1])

classmates.append('Adams')
print(classmates)

classmates.insert(1, 'Jackson')
print(classmates)

print(classmates.pop())
print(classmates)

# tuple

classname = ('Michael', 'Bob', 'Tracy')
print(classname)

t = (1,)# 必须加,


L = [
    ['Apple', 'Google', 'Facebook'],
    ['Java', 'Python', 'Ruby', 'PHP'],
    ['Adam', 'Bart', 'Lisa']
]

print(L[0][0])
print(L[1][1])
print(L[2][2])
